package com.jmlee.service.impl;

import com.jmlee.mapper.AOrderMapper;
import com.jmlee.pojo.AItemComments;
import com.jmlee.pojo.AOrderItems;
import com.jmlee.pojo.AOrders;
import com.jmlee.pojo.Users;
import com.jmlee.service.AOrderService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AOrderServiceImpl implements AOrderService {


    @Autowired
    private AOrderMapper aorderMapper;

    @Override
    public List<AOrderItems> queryOrderById(Long id) {
        return aorderMapper.queryOrderById(id);
    }

    @Override
    public AItemComments queryCommentsById(Long id) {
        return aorderMapper.queryCommentsById(id);
    }

    @Override
    public Integer insertSubmit(AItemComments aItemComments) {
        return aorderMapper.insertSubmit(aItemComments);
    }

    @Override
    public AOrders queryRefundById(Long id) {
        return aorderMapper.queryRefundById(id);
    }

    @Override
    public Users queryUsersById(Long id) {
        return aorderMapper.queryUsersById(id);
    }

    @Override
    public int selectOrderListCount(AOrders AOrders,Long  id ) {
        return aorderMapper.selectOrderListCount(AOrders,id );
    }



    @Override
    public List<AOrders> selectOrderList(AOrders AOrders, RowBounds rowBounds,Long  id ) {
        return aorderMapper.selectOrderList(AOrders, rowBounds,id);
    }

    @Override
    public int selectShopOrderListCount(AOrders AOrders) {
        return aorderMapper.selectShopOrderListCount(AOrders);
    }

    @Override
    public List<AOrders> selectShopOrderList(AOrders AOrders, RowBounds rowBounds) {
        return aorderMapper.selectShopOrderList(AOrders,rowBounds);
    }


}
